<?php


namespace app\Enums;


class GamesStatus
{

    const READY = 1;
    const PROGRESS = 2;
    const END = 3;
    const CANCEL = 4;


    const description = [
        self::READY => "准备",
        self::PROGRESS => "进行中",
        self::END => "游戏结束",
        self::CANCEL => "取消",

    ];

    public static function getDescription($value): string
    {
        return self::description[$value] ?? "";
    }

}